﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class FloorTopicInfoConfig : EntityTypeConfiguration<FloorTopicInfo>
    {
        public FloorTopicInfoConfig()
        {
            ToTable("Himall_FloorTopics");
            Property(item => item.TopicImage).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.TopicName).HasColumnType("varchar").HasMaxLength(100);
            Property(item => item.Url).HasColumnType("varchar").HasMaxLength(1000);
            HasRequired(x => x.HomeFloorInfo).WithMany(x => x.FloorTopicInfo).HasForeignKey(x => x.FloorId);
           
        }
    }
}
